#include <stdio.h>
#include <stdlib.h>

int
main(void) {
    static char const* feature_names[] = {
        "ltconfig_Gen",
        "ltconfig_Test",
        NULL,
    };

    printf("#ifndef SRC_LTCONFIG_H_\n"
           "#define SRC_LTCONFIG_H_\n"
           "\n");

    for (size_t i = 0; feature_names[i] != NULL; ++i) {
        int feature = getenv(feature_names[i]) == NULL ? 0 : 1;
        printf("#define %s %d\n", feature_names[i], feature);
    }

    printf("\n"
           "#endif // SRC_LTCONFIG_H_\n");
    return 0;
}
